import {
  wxRequest
} from './wxRequest';

let env = "-test" //-dev 或者 -test
// const baseUrl = 'https://www.pointlife365.net:8089' //公交联盟 正式环境
 const baseUrl = 'http://slp1.slzrsz.com:8888' // 指点生活  测试环境
// 
//微信的jscode换取sessionKey
const login = (params) => wxRequest(params, baseUrl + "/api/slwx/postlogin", 0);
const getAccountList = (params) => wxRequest(params, baseUrl + "/api/sl/getaccountlist", 0);
const getCompanyList = (params) => wxRequest(params, baseUrl + "/api/sl/getcompanylist", 0);
const SendVerifyCode = (params) => wxRequest(params, baseUrl + "/api/sl/SendVerifyCode");
const postAccountDebit = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountDebit", 0);
const PostAccountApply = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountApply");
const GetTopupPlanList = (params) => wxRequest(params, baseUrl + "/api/sl/GetTopupPlanList");
const GetAccountInfo = (params) => wxRequest(params, baseUrl + "/api/sl/GetAccountInfo", 0);
const PostAccountTopup = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountTopup", 0);
const PostTxnQuery = (params) => wxRequest(params, baseUrl + "/api/sl/PostTxnQuery", 0);
const PostAccountCancelQuery = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountCancelQuery", 0);
const PostAccountCancel = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountCancel");
const PostAccountCancelUndo = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountCancelUndo");
// const GetAccountList = (params) => wxRequest(params, baseUrl + "/api/sl/GetAccountList");
const PostAccountCancelConfirm = (params) => wxRequest(params, baseUrl + "/api/sl/PostAccountCancelConfirm");
const PostArticleQuery = (params) => wxRequest(params, baseUrl + "/api/sl/PostArticleQuery");
const PostTxnQueryic = (params) => wxRequest(params, baseUrl + "/api/ic/PostTxnQuery");
const GetICList = (params) => wxRequest(params, baseUrl + "/api/ic/GetICList");
const PostSetCityCode = (params) => wxRequest(params, baseUrl + "/api/sl/PostSetCityCode");
const saveGuestMessage = (params) => wxRequest(params, baseUrl + "/api/slwx/PostSaveGuestMessage");
const uploadFile = (params) => wxRequest(params, baseUrl + "/api/sl/uploadfile");
const PostPay = (params) => wxRequest(params, baseUrl + "/api/ic/PostPay");
// const PostSendTemplateMsg = (params) => wxRequest(params, baseUrl + "/api/sl/PostSendTemplateMsg");
const PostSendTemplateMsg = (params) => wxRequest(params, baseUrl + "/api/slwx/PostSendTemplateMsg");
const getUserQRKey = (params) => wxRequest(params, baseUrl + "/api/sl/GetPayUserInfo", 0);
const PostGetCardCodeList = (params) => wxRequest(params, baseUrl + "/api/sl/PostGetCardCodeList", 0);
const PostSpecAccountApply = (params) => wxRequest(params, baseUrl + "/api/sl/PostSpecAccountApply");
const PostICAudit = (params) => wxRequest(params, baseUrl + "/api/ic/PostICAudit");
const GetArticle = (params) => wxRequest(params, baseUrl + "/api/sl/GetArticle");
const GetICAuditState = (params) => wxRequest(params, baseUrl + "/api/ic/GetICAuditState");
const GetVIPMemberPlan = (params) => wxRequest(params, baseUrl + "/api/sl/GetVIPMemberPlan", 0);
const PostVIPApply = (params) => wxRequest(params, baseUrl + "/api/sl/PostVIPApply");
const GetVIPApplyList = (params) => wxRequest(params, baseUrl + "/api/sl/GetVIPApplyList");
const PostRefund = (params) => wxRequest(params, baseUrl + "/api/sl/PostRefund");
const PostLineQuery = (params) => wxRequest(params, baseUrl + "/api/sl/PostLineQuery");
const PostBranchQuery = (params) => wxRequest(params, baseUrl + "/api/sl/PostBranchQuery");
const PostPapPayApply = (params) => wxRequest(params, baseUrl + "/api/slwx/PostPapPayApply");
const PostFetchPapPayData = (params) => wxRequest(params, baseUrl + "/api/slwx/PostFetchPapPayData", 0);
const PostAccountApplyapp = (params) => wxRequest(params, baseUrl + "/api/slwx/PostAccountApply");
const GetNFCTopupOrder = (params) => wxRequest(params, baseUrl + "/api/ic/GetNFCTopupOrder");
const PostNFCTopupConfirm = (params) => wxRequest(params, baseUrl + "/api/ic/PostNFCTopupConfirm");
const GetMerchantList = (params) => wxRequest(params, baseUrl + "/api/sl/GetMerchantList", 0);
const GetICConfig = (params) => wxRequest(params, baseUrl + "/api/ic/GetICConfig");
const PostNFCTopup = (params) => wxRequest(params, baseUrl + "/api/ic/PostNFCTopup");
const GetUserInfo = (params) => wxRequest(params, baseUrl + "/api/sl/GetUserInfo", 0);
const GetM1Key = (params) => wxRequest(params, baseUrl + "/api/ic/GetM1Key");
const PostTopup = (params) => wxRequest(params, baseUrl + "/api/ic/PostTopup");
const GetLockedTopupOrder = (params) => wxRequest(params, baseUrl + "/api/ic/GetLockedTopupOrder");
const PostICAuditQuery = (params) => wxRequest(params, baseUrl + "/api/ic/PostICAuditQuery", 0);
const GetQAList = (params) => wxRequest(params, baseUrl + "/api/Other/GetQAList", 0);
const GetSysDict = (params) => wxRequest(params, baseUrl + "/api/Other/GetSysDict", 0);
const GetQAByID = (params) => wxRequest(params, baseUrl + "/api/Other/GetQAByID", 0);
const GetCompanySetting = (params) => wxRequest(params, baseUrl + "/api/sl/GetCompanySetting", 0);
const PostUpdateUserInfo = (params) => wxRequest(params, baseUrl + "/api/slwx/PostUpdateUserInfo", 0);
const PostAccountDebitTopup = (params) => wxRequest(params, baseUrl + "/api/SL/PostAccountDebitTopup");
const postapplog = (params) => wxRequest(params, baseUrl + "/api/slwx/postapplog",0);
const PostVerifyEmployeeInfo = (params) => wxRequest(params, baseUrl + "/api/SL/PostVerifyEmployeeInfo",0);
const GetServerTime = (params) => wxRequest(params, baseUrl + "/api/SL/GetServerTime",0);
const PostBindICCard = (params) => wxRequest(params, baseUrl + "/api/CA/PostBindICCard");
const PostPapPayApplyCA = (params) => wxRequest(params, baseUrl + "/api/CA/PostPapPayApply",0);
const PostQueryICCard = (params) => wxRequest(params, baseUrl + "/api/CA/PostQueryICCard",0);
const PostTxnQueryCA = (params) => wxRequest(params, baseUrl + "/api/CA/PostTxnQuery",0);
const PostSetNickName = (params) => wxRequest(params, baseUrl + "/api/CA/PostSetNickName",0);
const GetSysSetting = (params) => wxRequest(params, baseUrl + "/api/CA/GetSysSetting",0);
const PostAccountDebitTopupCA = (params) => wxRequest(params, baseUrl + "/api/CA/PostAccountDebitTopup");
const PostCouponQuery = (params) => wxRequest(params, baseUrl + "/api/slwx/PostCouponQuery");
const PostCouponApply = (params) => wxRequest(params, baseUrl + "/api/slwx/PostCouponApply",0);
const PostUnBindICCardApply = (params) => wxRequest(params, baseUrl + "/api/CA/PostUnBindICCardApply",0);
const PostUnBindICCard = (params) => wxRequest(params, baseUrl + "/api/CA/PostUnBindICCard",0);
const PostFaceVerify = (params) => wxRequest(params, baseUrl + "/api/slwx/PostFaceVerify",0);
const PostUserRealInfo = (params) => wxRequest(params, baseUrl + "/api/other/PostUserRealInfo",0);
const PostRiderReg = (params) => wxRequest(params, baseUrl + "/api/slwx/PostRiderReg",0);
const PostBusInfo = (params) => wxRequest(params, baseUrl + "/api/other/PostBusInfo",0);
const GetAccountRights = (params) => wxRequest(params, baseUrl + "/api/slwx/GetAccountRights",0);
const PostSpecialLineApply = (params) => wxRequest(params, baseUrl + "/api/slwx/PostSpecialLineApply",0);
const GetADList = (params) => wxRequest(params, baseUrl + "/api/other/GetADList",0);
const PostAdClick = (params) => wxRequest(params, baseUrl + "/api/other/PostAdClick",0);
const GetArticleList = (params) => wxRequest(params, baseUrl + "/api/other/GetArticleList",0);
const GetLBSAdList = (params) => wxRequest(params, baseUrl + "/api/other/GetLBSAdList",0);
const GetCouponPlan = (params) => wxRequest(params, baseUrl + "/api/Other/GetCouponPlan",0);
const PostCouponList = (params) => wxRequest(params, baseUrl + "/api/Other/PostCouponList",0);
const PostCouponUse = (params) => wxRequest(params, baseUrl + "/api/Other/PostCouponUse",0);
const PostCouponApplyCoupon = (params) => wxRequest(params, baseUrl + "/api/Other/PostCouponApply",0);
const GetBizToken = (params) => wxRequest(params, baseUrl + "/api/other/GetBizToken",0);
const GetBizTokenResult = (params) => wxRequest(params, baseUrl + "/api/other/GetBizTokenResult",0);
const PostFaceApply = (params) => wxRequest(params, baseUrl + "/api/slwx/PostFaceApply",0);
const PostFaceCancel = (params) => wxRequest(params, baseUrl + "/api/slwx/PostFaceCancel",0);
const PostFaceQuery = (params) => wxRequest(params, baseUrl + "/api/slwx/PostFaceQuery",0);
const GetICTopupPlanList = (params) => wxRequest(params, baseUrl + "/api/ic/GetICTopupPlanList",0);


export default {
  baseUrl,
  login,
  getAccountList,
  getCompanyList,
  postAccountDebit,
  SendVerifyCode,
  PostAccountApply,
  GetTopupPlanList,
  GetAccountInfo,
  PostAccountTopup,
  PostTxnQuery,
  PostAccountCancelQuery,
  PostAccountCancel,
  PostAccountCancelUndo,
  // GetAccountList,
  PostAccountCancelConfirm,
  PostArticleQuery,
  PostTxnQueryic,
  GetICList,
  PostSetCityCode,
  saveGuestMessage,
  uploadFile,
  PostPay,
  PostSendTemplateMsg,
  getUserQRKey,
  PostGetCardCodeList,
  PostSpecAccountApply,
  PostICAudit,
  GetArticle,
  GetICAuditState,
  GetVIPMemberPlan,
  PostVIPApply,
  GetVIPApplyList,
  PostRefund,
  PostLineQuery,
  PostBranchQuery,
  PostPapPayApply,
  PostFetchPapPayData,
  PostAccountApplyapp,
  GetNFCTopupOrder,
  PostNFCTopupConfirm,
  GetMerchantList,
  GetICConfig,
  PostNFCTopup,
  GetM1Key,
  GetUserInfo,
  PostTopup,
  GetLockedTopupOrder,
  PostICAuditQuery,
  GetQAList,
  GetSysDict,
  GetQAByID,
  GetCompanySetting,
  PostUpdateUserInfo,
  PostAccountDebitTopup,
  postapplog,
  PostVerifyEmployeeInfo,
  GetServerTime,
  PostBindICCard,
  PostPapPayApplyCA,
  PostQueryICCard,
  PostTxnQueryCA,
  PostSetNickName,
  GetSysSetting,
  PostAccountDebitTopupCA,
  PostCouponQuery,
  PostCouponApply,
  PostUnBindICCardApply,
  PostUnBindICCard,
  PostFaceVerify,
  PostUserRealInfo,
  PostRiderReg,
  PostBusInfo,
  GetAccountRights,
  PostSpecialLineApply,
  GetADList,
  PostAdClick,
  GetCouponPlan,
  PostCouponList,
  PostCouponUse,
  GetArticleList,
  GetLBSAdList,
  PostCouponApplyCoupon,
  GetBizToken,
  GetBizTokenResult,
  PostFaceApply,
  PostFaceCancel,
  PostFaceQuery,
  GetICTopupPlanList
}
